package ace.module.account.core.impl.api.impl;

import ace.cmp.core.model.R;
import ace.module.account.api.IamAccountTagApi;
import ace.module.account.api.model.dto.IamAccountTagDto;
import ace.module.account.api.model.input.IamAccountTagAddInput;
import ace.module.account.core.impl.dao.entity.IamAccountTag;
import ace.module.account.core.impl.manager.IamAccountTagManager;
import ace.module.account.core.impl.service.IamAccountTagService;
import ace.module.common.api.annotation.ApiLocalPriority;
import ace.module.common.core.impl.api.impl.SdkApiImpl;
import lombok.AllArgsConstructor;
import org.springframework.stereotype.Component;


/**
 * 账户标签 api implements.
 *
 * @author Caspar
 *
 */
@ApiLocalPriority
@AllArgsConstructor
@Component
public class IamAccountTagApiImpl
    extends SdkApiImpl<IamAccountTag, Long, IamAccountTagDto, IamAccountTagManager>
    implements IamAccountTagApi {

  private final IamAccountTagService iamAccountTagService;

  @Override
  public R<Void> addTag(IamAccountTagAddInput input) {
    iamAccountTagService.addTag(input);
    return R.ok();
  }
}
